package com.xpertline.ui.validator;

import org.apache.commons.lang3.StringUtils;
import org.jdesktop.beansbinding.Validator;

/**
 * Validate the year-of-birth field. This year can't be in the future.
 */
public final class RequiredValidator extends Validator<String> {

	@Override
	public Result validate(String param) {
		if (StringUtils.isEmpty(param)) {
			return new Result(null, "The value is required.");
		}
		return null;
	}
}
